import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import local_set from '@feidao/web/atom/browser/local/set';
import local_get from '@feidao/web/atom/browser/local/get';

export default async function a006(fd: IFeidaoAiBrowserComponent, ...args: any[]) {

	const user_pwd = fd.data.node.querySelector('[data-feidao-id="user_pwd"]') as HTMLInputElement;
	const fl = await local_get(fd, 'fl');
	if (fl) {
		user_pwd.type = 'password';
		await local_set(fd, 'fl', false);
	} else {
		user_pwd.type = 'text';
		await local_set(fd, 'fl', true);
	}
}

